package com.lzj.demo.collection.person;

public class PersonDome {
    public static void main(String[] args) {
        Teacher t = new Teacher();
        t.setName("林泽健");
        t.setAge(30);
        System.out.println(t.getName()+","+t.getAge());
        t.teach();
        Teacher t2 = new Teacher("林泽健",20);
        System.out.println(t2.getName()+","+t2.getAge());
        t2.teach();
    }
}
